import request from "../utils/request";

export const pageApi =(name,gender,page,pageSize) =>
  request.get(`/user/list?name=${name}&gender=${gender}&page=${page}&pageSize=${pageSize}`)

export const addApi = (data)=>
  request.post('/user/add',data)

export const updateApi = (data)=>
  request.put('/user/update',data)

export const deleteApi = (id)=>
  request.delete(`/user/delete/${id}`)

export const userApi = (data) =>request.get('/user/getList',data)